<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			
			body {
				background: #eee;
				width: 100%;
				height: 100%;
			}
			
			.noNetwork {
				position: fixed;
				left: 50%;
				top: 50%;
				-webkit-transform: translate(-50%, -50%);
				transform: translate(-50%, -50%);
				z-index: 1000;
				border-radius: 10px;
				width: 60%;
				max-width: 300px;
				padding-bottom: 12px;
			}
			
			.noNetwork_img {
				margin-bottom: 20px;
			}
			
			.noNetwork_img img {
				vertical-align: middle;
				width: 100%;
			}
			
			.noNetwork_text {
				font-size: 12px;
				text-align: center;
				color: #333;
			}
			
			.noNetwork_text>span:last-child {
				color: #1dcbf0;
				border-bottom: 1px solid #1dcbf0;
			}
		</style>
	</head>

	<body>
		<div class="noNetwork">
			<div class="noNetwork_img"><img src="../../images/no_network.png" /></div>
			<div class="noNetwork_text">
				<span>断网了，请</span>
				<span id="reload">重新加载</span>
			</div>
		</div>

		<script src="../../js/mui.min.js"></script>
		<script src="../../js/libs/zepto.js"></script>
		<script type="text/javascript">
			mui.init({
			})
			$('#reload').on('tap', function() {
				plus.webview.getWebviewById(plus.webview.currentWebview().parentId.id).reload()
			})

			var _toast = false

			mui.back = function() {
				var list = ['home.html', 'classify.html', 'special.html', 'shopping.html', 'my.html', '../special/specialregion.html']
				var urls = plus.webview.currentWebview().parentId.id
				if(list.indexOf(urls) >= 0) {
					if(!_toast || !_toast.isVisible()) {
						_toast = mui.toast('再按一次返回键退出', {
							type: 'div'
						});
					} else {
						plus.runtime.quit();
					}
				} else {
					plus.webview.getWebviewById(plus.webview.currentWebview().parentId.id).close()
				}
			}
		</script>
	</body>

</html>